<template>
  <div id="app" style="height: 100%">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive">
      </router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
import Cookies from "js-cookie";

export default {
  name: "App",
  async created() {
    let result = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZG1pbiIsImNvbnRleHRVc2VySWQiOiIwIiwiY29udGV4dE5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJjb250ZXh0RGVwdElkIjoiMCIsImNvbnRleHRBcHBsaWNhdGlvbklkIjoiMCIsImlhdCI6MTY0NDgyMjk2NSwiZXhwIjoxNjYwMzc0OTY1fQ.cJb0CKluC1ihoDJIf3rYOX-jEGsaXs_NtFHYPq3yh5c"
    Cookies.set("token", result);
    localStorage.setItem('token', result)


    if (localStorage.getItem('saveLocalQhdm')) {
      localStorage.removeItem('saveLocalQhdm')
    }

  }
};
</script>

<style>
@import "assets/css/base.css";

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  /* color: #2c3e50; */
}

.el-loading-mask {
  z-index: 4000;
}

.el-message {
  z-index: 4001 !important;
}

.el-image-viewer__wrapper {
  z-index: 3500 !important;
}

.el-popup-parent--hidden {
  padding: 0 !important;
}
</style>
